package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.ClientType;

public interface ClientTypeService {

	public abstract ClientType getClientTypeById(Long id);

	public abstract int getClientTypeCountByCriteria(DetachedCriteria query);

	public abstract List<ClientType> getClientTypes(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract String CreateTypeCode();

	public abstract void saveClientType(ClientType clientType);

	public abstract void updateClientType(ClientType clientType);

	public abstract void removeClientType(Long id);

	public abstract List<ClientType> getClientTypes();
	
	public abstract List<ClientType> getClientTypes(DetachedCriteria query);
	
	public abstract List<ClientType> getClientTypesByTypeName(String type, int start, int size);
	
	public abstract int getClientTypesCountByName(String type);
}
